package fr.doume.jna.jna;

import com.sun.jna.Native;
import com.sun.jna.platform.win32.WinNT.PSID;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.win32.W32APIOptions;
import com.sun.jna.platform.win32.WinNT;
import com.sun.jna.platform.win32.WinNT.HANDLE;

import com.sun.jna.ptr.PointerByReference;
import com.sun.jna.Pointer;

public interface Advapi32bis extends WinNT {
	Advapi32bis INSTANCE = (Advapi32bis) Native.loadLibrary("Advapi32",
			Advapi32bis.class, W32APIOptions.UNICODE_OPTIONS);

  public boolean CheckTokenMembership( HANDLE hToken, byte[] sid_bytes, IntByReference isMember);

  public boolean LookupAccountName(String lpSystemName,
    String lpAccountName, byte[] Sid, IntByReference cbSid,
    char[] ReferencedDomainName,
    IntByReference cchReferencedDomainName, IntByReference peUse);

}
